package com.mynews.mvp.model;

import com.mynews.bean.DailyListBean;
import com.mynews.net.Net;
import com.mynews.utils.RxUtil;

import rx.Observable;

/**
 * Created by Administrator on 2017/6/23.
 */

public class LatestDailyModel {

    /**
     * 当日日报
     * @return
     */
    public Observable<DailyListBean> getLatestDaily(){
        return Net.getInstance().getDailyList().compose(RxUtil.<DailyListBean>rxSchedulerHelper());
    }

    /**
     * 往期日报
     * @param date
     * @return
     */
    public Observable<DailyListBean> getDailyBeforeList(String date){
        return Net.getInstance().getDailyBeforeList(date).compose(RxUtil.<DailyListBean>rxSchedulerHelper());
    }
}
